package cn.psvmc.cxzapi.model.goods;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 商品物流表
 *
 * @Author auto
 * @Date 2024-08-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_goods_logistics")
public class TGoodsLogistics implements Serializable {

    //商品物流id
    @TableId(value = "glid", type = IdType.AUTO)
    private Integer glid;

    //商品id
    @TableField("goods_id")
    private Integer goodsId;

    //发货地址
    @TableField(exist = false)
    private String outAddress;

    //归还地址
    @TableField(exist = false)
    private String inAddress;

    //寄出快递(1顺丰2德邦)
    @TableField("send_out")
    private Integer sendOut;

    //配送方式(寄出)（1包邮 2自付(租户自付邮费) 3统一运费 4下单X满天包邮）
    @TableField("out_type")
    private Integer outType;

    //寄出运费或包邮天数
    @TableField("out_day")
    private Integer outDay;

    //配送方式(寄回)（1包邮 2自付(租户自付邮费) 3统一运费 4下单X满天包邮）
    @TableField("in_type")
    private Integer inType;

    //寄回运费或包邮天数
    @TableField("in_day")
    private Integer inDay;

    //统一运费
    @TableField("shipping_fee")
    private Double shippingFee;

    //创建人id
    @TableField(value = "createid", fill = FieldFill.INSERT)
    private Integer createid;

    //创建时间
    @TableField(value = "createtime", fill = FieldFill.INSERT)
    private LocalDateTime createtime;

    //归还地址id
    @TableField("in_addressid")
    private Integer inAddressid;

    //发货地址id
    @TableField("out_addressid")
    private Integer outAddressid;


}
